package optimizers.ganeat.nand;

import java.util.HashMap;

import optimizers.commons.RunConfig;
import optimizers.ganeat.Constants;
import optimizers.ganeat.Node;
import runconfiguration.SquareConfiguration;


public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		HashMap<String, Integer> innovations = new HashMap<String, Integer>();
		HashMap<String, String> nodeNames = new HashMap<String, String>();
		RunConfig config = new SquareConfiguration();
		IndividualNAND indiv = new IndividualNAND(innovations, nodeNames, -1, 0, config);
		indiv.nodeGenes.add(new Node("i1", config.seqK.defaultValue, config.seqC.defaultValue,
				Node.SIMPLE_SEQUENCE));
		indiv.nodeGenes.add(new Node("i2", config.seqK.defaultValue, config.seqC.defaultValue,
				Node.SIMPLE_SEQUENCE));
		indiv.nodeGenes.add(new Node("a", config.seqK.defaultValue, config.seqC.defaultValue,
				Node.SIMPLE_SEQUENCE));

		indiv.addConnection(indiv.getNode("i1"), indiv.getNode("a"), true,
				config.template.defaultValue);
		indiv.addConnection(indiv.getNode("i2"), indiv.getNode("a"), true,
				config.template.defaultValue);
		indiv.mutateAddActivation();
		indiv.mutateAddActivation();
		indiv.mutateAddActivation();
		indiv.mutateAddActivation();
		indiv.mutateAddActivation();
		System.out.println(indiv.toString());
		System.out.println(indiv.mutationInfo);
	}

}
